#ifndef _mesh_h_included_
#define _mesh_h_included_
#include <d3dx9.h>
#include <d3d9.h>
#include <string>
#include "DXUtil.h"

using namespace std;
//THis class contains all information for a light
//Supports: Directional Light
//Needs support for: Point Light source
class Mesh
{

// global variables
string mName;
string mLocation;
LPD3DXMESH mMesh;
DWORD mNumMaterials;
//Array of materials
D3DMATERIAL9* mMaterials;
LPDIRECT3DTEXTURE9* mTextures;    // a pointer to a textures


public:
	Mesh();
	Mesh(string name, string location);
	void LoadMesh(LPDIRECT3DDEVICE9 d3ddev);
	void Draw(LPDIRECT3DDEVICE9 d3ddev);
	void Release();


	LPD3DXMESH GetMesh();
	D3DMATERIAL9* GetMaterials();
	DWORD GetNumMaterials();
	string GetName();
	string GetLocation();
	void GetName(string pName);
	void GetLocation(string pLocation);	
};
#endif
